package il.ac.technion.wiki.api.expressions;

import il.ac.technion.wiki.api.search.IndexSearcher;

public class Term extends Expression {

	private String term;
	
	public Term(String term) {
		this.term = term;
	}
	
	protected void evaluate(IndexSearcher iSearcher){
		this.hits = iSearcher.getTermHits(term);
	}

	public String  getTerm() {
		return this.term;
	}
}